package cn.java79.quiz.dao;

import cn.java79.quiz.entity.Questions;
import cn.java79.quiz.entity.Quiz;
import cn.java79.quiz.entity.Quizsel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public interface QuizMapper {
    public Quiz get(long id);
    public int  add(Quiz quiz);
    public int  addSel(Quizsel quiz);
    //public List<Quizsel> add(long quizid);
    //根据测试号获得所有的试题
    public List<Questions> getQues(long quizid);
    //根据知识点，获得题目的编号
    public List<Long> chooseForQuiz(@Param("skillid") long quizid, @Param("num") int num);

}
